/*
 * Copyright (c) 2021
 * User:mallplus多商户商城
 * File:SmsBasicGiftsServiceImpl.java
 * Date:2021/01/12 19:29:12
 */

package com.qyine.rlmall.sms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qyine.rlmall.sms.entity.SmsBasicGifts;
import com.qyine.rlmall.sms.mapper.SmsBasicGiftsMapper;
import com.qyine.rlmall.sms.service.ISmsBasicGiftsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zscat
 * @since 2019-07-07
 */
@Service
public class SmsBasicGiftsServiceImpl extends ServiceImpl<SmsBasicGiftsMapper, SmsBasicGifts> implements ISmsBasicGiftsService {

    @Resource
    private SmsBasicGiftsMapper giftsMapper;

    @Override
    public int updateStatus(Long id, Integer status) {
        SmsBasicGifts gifts = new SmsBasicGifts();
        gifts.setId(id);
        gifts.setStatus(status);
        return giftsMapper.updateById(gifts);
    }
}
